package com.rao.quartz.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author: raoguang
 * @Date: 2022/07/17/14:40
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class user {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer age;
    private String email;

    @TableLogic  //逻辑删除
    private Integer deleted;

    @Version  //乐观锁Version注解
    private Integer version;

    //字段添加填充内容
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
